package com.example.znxb.zswd.service.impl;

import com.example.znxb.zswd.entity.Infopasssword;
import com.example.znxb.zswd.mapper.InfopassswordMapper;
import com.example.znxb.zswd.service.InfopassswordService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

@Service
public class InfopassswordServiceImpl extends ServiceImpl<InfopassswordMapper, Infopasssword> implements InfopassswordService {

    @Override
    public Infopasssword login(String user, String password) {
        QueryWrapper<Infopasssword> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("user", user).eq("password", password);
        return this.getOne(queryWrapper);
    }
} 